<template>
  <div class="basic-status panel-block">
    <ul class="status">
      <li>
        <div class="tags has-addons">
          <span class="tag">会员</span>
          <span class="tag is-primary">{{totals.user_total}}</span>
        </div>
      </li>
      <li>
        <div class="tags has-addons">
          <span class="tag">主题</span>
          <span class="tag is-primary">{{totals.thread_total}}</span>
        </div>
      </li>
      <li>
        <div class="tags has-addons">
          <span class="tag">回复</span>
          <span class="tag is-primary">{{totals.comment_total}}</span>
        </div>
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  name: 'basic-status',
  data() {
    return {
      totals : {},
    }
  },
  methods: {

  },
  created() {
    this.$axios.getData.getTotals().then(res => {
      this.totals = res.data.data
    })
  },
  mounted() {
    // 轮播图定时器
  }
}
</script>

<style scoped>
.panel-block:last-child {
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
}
.panel-block {
  align-items: center;
  color: #363636;
  display: flex;
  justify-content: flex-start;
  padding: .5em .75em;
}
ul.status li {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}
.tags:last-child {
  margin-bottom: -.5rem;
}
.tags {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.tags.has-addons .tag:not(:last-child) {
  border-bottom-right-radius: 0;
  border-top-right-radius: 0;
}
.tags.has-addons .tag {
  margin-right: 0;
}
.tags .tag:not(:last-child) {
  margin-right: .5rem;
}
.tags .tag {
  margin-bottom: .5rem;
}
.status span {
  width: 70px;
  text-align: right;
  margin-right: 1em;
}
.tag:not(body) {
  align-items: center;
  background-color: #f5f5f5;
  border-radius: 4px;
  color: #4a4a4a;
  display: inline-flex;
  font-size: .75rem;
  height: 2em;
  justify-content: center;
  line-height: 1.5;
  padding-left: .75em;
  padding-right: .75em;
  white-space: nowrap;
}
span {
  font-style: inherit;
  font-weight: inherit;
}
.tags.has-addons .tag:not(:first-child) {
  margin-left: 0;
  border-bottom-left-radius: 0;
  border-top-left-radius: 0;
}
.tags.has-addons .tag {
  margin-right: 0;
}
.tag:not(body).is-primary {
  background-color: #91d601;
  color: #fff;
}
.tags .tag {
  margin-bottom: .5rem;
}
.status span {
  width: 70px;
  text-align: right;
  margin-right: 1em;
}
.tag:not(body) {
  align-items: center;
  background-color: #f5f5f5;
  border-radius: 4px;
  color: #4a4a4a;
  display: inline-flex;
  font-size: .75rem;
  height: 2em;
  justify-content: center;
  line-height: 1.5;
  padding-left: .75em;
  padding-right: .75em;
  white-space: nowrap;
}
span {
  font-style: inherit;
  font-weight: inherit;
}

</style>
